package io.lckgroup.modules.lck.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lckgroup.modules.lck.entity.OrderDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 订单明细表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:40
 */
@Mapper
public interface OrderDetailDao extends BaseMapper<OrderDetailEntity> {

    List<OrderDetailEntity> selectOrderDetail(long id);

    //通过订单ID获取订单明细数据
    List<Map<String, Object>> getOrderDetailByOrderId(Integer orderMainId);
}
